package com.training.java.core.homework05;

public abstract class Person implements Interface1 {
	private double cashOfOrganization;
	private double cashOfIndividual;

	public Person(double cashOfOrganization, double cashOfIndividual) {
		this.cashOfOrganization = cashOfOrganization;
		this.cashOfIndividual = cashOfIndividual;
	}

	public double getCashOfOrganization() {
		return cashOfOrganization;
	}

	public void setCashOfOrganization(double cashOfOrganization) {
		this.cashOfOrganization = cashOfOrganization;
	}

	public double getCashOfIndividual() {
		return cashOfIndividual;
	}

	public void setCashOfIndividual(double cashOfIndividual) {
		this.cashOfIndividual = cashOfIndividual;
	}

	// abstract public double getCashOfIRS(); // this is the trouble method, which
	// is meant to be in Employee class, to get cashOfIRS, which is a private in
	// Employee. getCashOfIRS() was not visible from Interface1Demo.java. In
	// order to render it visible, I had to code an Abstract method of the same
	// here.
}
